﻿@model CSF.Customers.Data.Customer
@{
    ViewBag.Title = "MyDetail";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>
    My Account Details</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Account Information</legend>
        @Html.HiddenFor(model => model.Id)
        <div class="floatright">
            <div class="editor-label">
                @Html.LabelFor(model => model.Logo)
            </div>
            <div class="editor-field">
                <img alt="logo" width="300" height="300" src="@Model!=null?Model.Logo:string.Empty" /><br />
                @Html.TextBoxFor(model => model.Logo, new { @class = "longtextbox" })
                @Html.ValidationMessageFor(model => model.Logo)
            </div>
        </div>
        <div class="editor-label">
            Personal or legal name of Importer
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NickName)
            @Html.ValidationMessageFor(model => model.NickName)
        </div>
        <div class="editor-label">
            Doing Business (Trading) as
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FullName)
            @Html.ValidationMessageFor(model => model.FullName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Address1)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Address1, new { @class = "longtextbox" })
            @Html.ValidationMessageFor(model => model.Address1)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Address2)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Address2, new { @class = "longtextbox" })
            @Html.ValidationMessageFor(model => model.Address2)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Suburb)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Suburb)
            @Html.ValidationMessageFor(model => model.Suburb)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.City)
            @Html.ValidationMessageFor(model => model.City)
        </div>
        <div class="editor-label">
            State, Province or County
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Province)
            @Html.ValidationMessageFor(model => model.Province)
        </div>
        <div class="editor-label">
            Country
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.CountryCode, ViewBag.CountryList as IEnumerable<SelectListItem>, "-- Please Select Country --")
            @Html.ValidationMessageFor(model => model.CountryCode)
        </div>
        <div class="editor-label">
            Zip (or post) Code
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ZipCode)
            @Html.ValidationMessageFor(model => model.ZipCode)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
        <div class="editor-field">
            <div style="float: left">
                @Html.CheckBoxFor(m => m.InMailList)</div>
            <div>
                Tick here if you want to be on our emailing list. We will never disclose this information
                to a third party.
            </div>
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Mobile)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Mobile)
            @Html.ValidationMessageFor(model => model.Mobile)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Phone)
            @Html.ValidationMessageFor(model => model.Phone)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Fax)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Fax)
            @Html.ValidationMessageFor(model => model.Fax)
        </div>
        <div class="editor-label">
            Web Site
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WebSite)
            @Html.ValidationMessageFor(model => model.WebSite)
        </div>
        <div class="editor-label">
            Courier Account No.
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CourierAccountNo)
            @Html.ValidationMessageFor(model => model.CourierAccountNo)
        </div>
        <div class="editor-label">
            VAT No.
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VatNo)
            @Html.ValidationMessageFor(model => model.VatNo)
        </div>
        <p class="clear">
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
